<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<div class="container_0 clearfix">
	<div class="box no-border">
		<div class="header">
			<h2>${pageTitle}</h2>
		</div>
		<isperp:grid url="app/calendar/config/list"
			gridId="calendarConfigGrid" 
			cusFormatterActions="true" cusEditUrl="app/calendar/config/edit"
			ondbClickRowEvent="calendarConfigGrid.edit(rowid);"
			cusDeleteUrl="app/calendar/config/delete">

			<jsp:attribute name="toolbar">
 				<isperp:toolbar id="calendarConfigToolbar">
	 				<isperp:button id="calendarConfigCreate" icon="icon-plus" cssClass="nui-mainbtn"
						text="新增日历" onclick="calendarConfigGrid.create();"></isperp:button>
	 				
 				</isperp:toolbar>
			</jsp:attribute>
			<jsp:attribute name="searchbar">
					<table class="search-table">
						<tbody>
							<tr> 
								<td align="right">名称：</td>
									<td><input type="text" field="name" op="cn">
								</td>
							</tr>
					</tbody>
				</table>
			</jsp:attribute>
			<jsp:body>
				<isperp:column name="id" title="id" hidden="true"></isperp:column>
				<isperp:column name="name" title="名称" width="80"
					isFormatterFun="true">
				</isperp:column>
				<isperp:column name="fromDate" title="开始日期" 
					width="60">
				</isperp:column>
				<isperp:column name="toDate" title="结束日期"  width="60">
				</isperp:column>
				<isperp:column name="week1" title="星期一" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week2" title="星期二" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week3" title="星期三" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week4" title="星期四" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week5" title="星期五" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week6" title="星期六" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="week7" title="星期天" formatter="checkbox"
					 width="40">
				</isperp:column>
				<isperp:column name="amBegin" title="上午" 
					 width="50">
				</isperp:column>
				<isperp:column name="amEnd" title="上午" 
					 width="50">
				</isperp:column>
				<isperp:column name="pmBegin" title="下午" 
					 width="50">
				</isperp:column>
				<isperp:column name="pmEnd" title="下午" 
					 width="50">
				</isperp:column>
                <isperp:groupHeaders startColumnName="week1"
					numberOfColumns="7" titleText="工作日设定"></isperp:groupHeaders>
				<isperp:groupHeaders startColumnName="amBegin" numberOfColumns="4"
					titleText="工作时间设定"></isperp:groupHeaders>
				<isperp:groupHeaders startColumnName="fromDate" numberOfColumns="2"
					titleText="有效期"></isperp:groupHeaders>
				
			</jsp:body>
		</isperp:grid>
	</div>

</div>
<script type="text/javascript">
  
</script>
